/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Zero
 */
@Entity
public class InstanciaTourServicio extends InstanciaServicio implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Temporal(TemporalType.DATE)
    private Date fecha;
    
    @ManyToOne
    private Tour tour;
    
    @Temporal(TemporalType.TIME)
    private Date horario;
    
    @ManyToOne
    private TourServicio tourServicio;

    public TourServicio getTourServicio() {
        return tourServicio;
    }

    public void setTourServicio(TourServicio tourServicio) {
        this.tourServicio = tourServicio;
    }

    public Date getHorario() {
        return horario;
    }

    public void setHorario(Date horario) {
        this.horario = horario;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public Tour getTour() {
        return tour;
    }

    public void setTour(Tour tour) {
        this.tour = tour;
    }

    @Override
    public Servicio getServicio() {
        return this.getTourServicio();
    }
    
    

}
